]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
switchMonitor: Center align switcher icon's label
authorUmang Jain <mailumangjain@gmail.com>
Thu, 2 Jan 2020 07:25:14 +0000 (12:55 +0530)
committerUmang Jain <mailumangjain@gmail.com>
Thu, 2 Jan 2020 07:33:08 +0000 (13:03 +0530)
Fallout from 104071acbd.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/913

js/ui/switchMonitor.js

index ded8c49c029fd001c0b2358812741bd9dec99dd5..5ac5825224f830d47fea1ac8e1b29fff3850421d 100644 (file)
@@ -86,7 +86,10 @@ class SwitchMonitorSwitcher extends SwitcherPopup.SwitcherList {
                                  icon_size: APP_ICON_SIZE });
         box.add_child(icon);
 
-        let text = new St.Label({ text: item.label });
+        let text = new St.Label({
+            text: item.label,
+            x_align: Clutter.ActorAlign.CENTER,
+        });
         box.add_child(text);
 
         this.addItem(box, text);